#脚本内容可以自行修改，要自己维护
#!/bin/bash
if [ $# = 0 ]; then
    printf "请指定环境变量参数\n";
    exit 1;
elif [ $1 = "pre" ]; then
    nohup java -Xmx2048m -Xms2048m -XX:MaxMetaspaceSize=300m -XX:MetaspaceSize=128m  -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -verbose:gc -Xloggc:/opt/bobo/bobo-web-service/logs/gc.log -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseCMSCompactAtFullCollection -XX:+PrintGCDateStamps   -XX:+PrintGCDetails -jar meteor-demo.jar 1>/opt/bobo/bobo-web-service/logs/nohup.log 2>&1 &
elif [ $1 = "prod" ]; then
    nohup java -Xmx4096m -Xms4096m -XX:MaxMetaspaceSize=300m -XX:MetaspaceSize=128m  -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -verbose:gc -Xloggc:/opt/bobo/bobo-web-service/logs/gc.log -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseCMSCompactAtFullCollection -XX:+PrintGCDateStamps   -XX:+PrintGCDetails -jar meteor-demo.jar 1>/opt/bobo/bobo-web-service/logs/nohup.log 2>&1 &
fi
